package kotlindemo.com.kotlindemo

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Toast

class LoginActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_login)
        var intent= Intent(this,MainActivity::class.java).apply {
            putExtra("name","Tom")
            putExtra("age","22")
        };
        startActivity(intent)
        getScore("Tom");
        var string="111"
        string.showToast(this)
    }
}
